import http from '@/utils/request'

export default {

    // 添加书本
    addBook(params) {
        return http.post('/books/add', params)
    },
    // 图书列表
    bookList(params) {
        return http.get('/books/list', params)
    },
    // 根据关键字搜索图书
    searchBook(query) {
        return http.get('/books/searchBook', query)
    }

}